<?php

namespace app\controllers;

class SessionController extends BaseController
{
    public function loginAction()
    {
        if ($this->cookies->has('remember-me')) {
            $rememberMe = $this->cookies->get('remember-me');
            $value = $rememberMe->getValue();
        }
    }

    public function startAction()
    {
        $this->cookies->set('remember-me', 'value', time()+15*86400);
    }

    public function logoutAction()
    {
        $this->cookies->get('remember-me')->delete();
    }
}